<?php

require_once dirname(__FILE__).'/../lib/BasesfGuardUserActions.class.php';
require_once dirname(__FILE__).'/../lib/sfGuardUserGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/sfGuardUserGeneratorHelper.class.php';

/**
 * sfGuardUser actions.
 *
 * @package    sfGuardPlugin
 * @subpackage sfGuardUser
 * @author     Fabien Potencier
 * @version    SVN: $Id: actions.class.php 12896 2008-11-10 19:02:34Z fabien $
 */
class sfGuardUserActions extends BasesfGuardUserActions
{
	   protected function processForm(sfWebRequest $request, sfForm $form)
  {
    $form->bind($request->getParameter($form->getName()));
    if ($form->isValid())
    {
      $sf_guard_user = $form->save();

      //$this->redirect('user/edit?id='.$sf_guard_user_profile['id']);
      $this->redirect('sfGuardUser/index');
    }
  }
   public function executeIndex(sfWebRequest $request)
  {
    $this->sf_guard_user_list = Doctrine::getTable('sfGuardUser')
      ->createQuery('a')
      ->execute();
  }
}
